package com.spzx.product.api.factory;

import com.spzx.common.core.domain.R;
import com.spzx.product.api.domain.vo.CategoryVo;
import com.spzx.product.api.service.RemoteCategoryService;

import java.util.List;

//@Component
public class RemoteCategoryServiceFallback implements RemoteCategoryService {
    @Override
    public R<List<CategoryVo>> getOneCategory(String source) {
        return R.fail(null,"调用商品服务获取分类信息失败");
    }

    @Override
    public R<List<CategoryVo>> tree(String source) {
        return R.fail("调用商品服务获取分类列表失败");
    }
}
